use "build/output/main_panel.dta", clear

sum p if coin == "USDT"
sum p if coin == "DAI"

sum margin_aprFTX if coin == "USDT"
sum margin_aprFTX if coin == "DAI"

// futures funding rates
use "build/output/futures_funding_long.dta", clear
keep if exchange == "Binance"

drop if date < mdy(12,1,2020)
drop if date > mdy(11,5,2022)

sum funding_apr if coin == "BTC" & base == "USDT"
sum funding_apr if coin == "ETH" & base == "USDT"


